package zy.data.food.impl;

import org.springframework.beans.factory.annotation.Autowired;
import zy.data.food.domain.SellerInfo;
import zy.data.food.repository.SellerInfoRepository;
import zy.data.food.service.SellerService;

/**
 * @Auther: zhangy
 * @Date: 2018/9/12 10:51
 * @Description:
 */
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {

        SellerInfo sellerInfo = sellerInfoRepository.findByOpenid(openid);
        return sellerInfo;
    }
}
